import React, { Component } from 'react';
import { Resizable } from "react-resizable";

function Resizecell({ onResize, width, onClick, ...restProps }) {
    if (!width) {
        return <th {...restProps} />;
    }
    return (<Resizable
        width={width}
        height={0}
        onResize={onResize}
    >
        <th
         
            {...restProps}
        />
    </Resizable>);
}


export default Resizecell;

